package com.njit.mailm.core.service;

import com.njit.mailm.core.bean.Classify;
import com.njit.mailm.core.bean.User;

import java.util.List;

/**
 * Created by Administrator on 2016/5/10.
 */
public interface TreeService {
    boolean addRoot(Classify classify);
    
    Classify getClassifyByName(String name,String userId);

    boolean updateRoot(Classify classify, String newName);

    boolean deleteRoot(Classify classify);

    boolean addChildElement(String name, String parentName, User user);

    boolean updateChildElement(String name, String originName, User user);

    boolean deleteChildElement(String name, User user);

    List<Classify> listAllElement(User user);
}
